﻿namespace Rmq.Center
{
    public class OrderUnlockingMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }        
    }

    public class OrderUnlockingProducer : BaseProducer<OrderUnlockingMsg>
    {
        public OrderUnlockingProducer()
            : base(Const.RoutingKeys.OrderUnlocking)
        { }
    }

    public class OrderUnlockingConsumer : BaseConsumer<OrderUnlockingMsg>
    {
        public OrderUnlockingConsumer()
            : base(Const.QueueNames.OrderUnlocking, Const.RoutingKeys.OrderUnlocking)
        { }
    }
}